﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WordSmith_V1.Library.Security
{
    public class Right
    {
        private readonly string _name;
        private readonly Guid _id;
        private readonly bool _protected;
        private bool _isInternal;
        protected Right()
        {
            _isInternal = false;
        }
        public Right(string name)
            : this()
        {
            _id = Guid.NewGuid();
            _name = name;
        }
        public Right(string name, Guid guid)
            : this()
        {
            _name = name;
            _id = guid;
        }
        public virtual Guid Id { get { return _id; } }
        public virtual string Name { get { return _name; } }
        public virtual bool Protected { get { return _protected; } }
        public virtual bool IsInternal { get { return _isInternal; } protected internal set { _isInternal = value; } }
    }
}
